<ion-view view-title="Account">

  <ion-content class=" bk-gray" data-ng-init="initDatas()">

    <div class="mine_info_bg">
        <img class="mine_info_img_bg blur" src={{user.avatar}}/>
        <a class="main_info_bt_l button  icon ion-ios-keypad-outline" href="#/account/setting"></a>
        <div class=" mine_info_center_area ">
            <img class="circle_img_80px" src={{user.avatar}} ng-click="selectImgType()" />
            <p class="white_medium_font">{{user.nickname}}</p>
            <p class="white_small_font">{{user.signature}}</p>
        </div>
        <a class="main_info_bt_r button  icon ion-ios-paper-outline" ng-show={{false}} href="#/account/sign"></a>

        <div class="row mine_sub_info_height_40px">
          <div class="col mine_sub_info" ng-show="false"><p>我关注的<span>{{user.follow_count}}</span></p></div>
          <div class="col mine_sub_info"><p>粉丝<span>{{user.fans_count}}</span></p></div>
          <div class="col mine_sub_info"><p>活跃度<span>{{user.elite_blogs}}</span></p></div>
          <div class="col mine_sub_info"><p>获赞<span>{{user.up_count}}</span></p></div>
        </div>
    </div>

    <div class="bk-white font-color-gray" id="account-main-nav">
        <div class="row ">
            <div class="col" ng-click="goToMyCollection()">
                <div class="nav-circle">
                    <div class="nav-circle-icon-sm">
                    		<img src="img/account/sc.png"/>
                    </div>
                    <div class="nav-circle-label-sm ">收藏</div>
                </div>
            </div>

            <div class="col" ng-click="goToMsg()">
                <div class="nav-circle">
                    <div class="nav-circle-icon-sm">
                    		<img src="img/account/r.png"/>
                    </div>
                    <div class="nav-circle-label-sm">信息<span class="badge badge-assertive" ng-show="newMessage>0">{{newMessage}}</span></div>
                </div>
            </div>

            <div class="col" ng-click="goToPointExchange()">
                <div class="nav-circle">
                    <div class="nav-circle-icon-sm">
                    		<img src="img/account/d.png"/>
                    </div>
                    <div class="nav-circle-label-sm">我的积分</div>
                </div>
            </div>

            <div class="col" ng-click="goToTeaB()" ng-show="false">
                <div class="nav-circle">
                    <div class="nav-circle-icon-sm">
                    		<img src="img/account/c.png"/>
                    </div>
                    <div class="nav-circle-label-sm">茶币商城</div>
                </div>
            </div>

            <div class="col">
                <div class="nav-circle" ng-click="goToShopCart()">
                    <div class="nav-circle-icon-sm">
                    		<img src="img/account/car.png"/>
                    </div>
                    <div class="nav-circle-label-sm">购物车</div>
                </div>
            </div>
        </div>

    </div>

    <div class="myrow bk-white" ng-repeat="item in blogList">
      <div class="teatalk-item ">
        <div class="teatalk-item-header">
          <div class="float-left">
            <div class="teatalk-store-logo float-left">
              <img src="{{item.user.avatar}}" ng-click="goToUserDetailPage(item.user.id)" />
            </div>
            <div class="float-left">
              <div>
                <span class="teatalk-store-name">{{item.user.nickname}}</span>
                <span class="teatalk-store-icon">
                  <span class="" ng-show="false">vip</span>
                  <span class="" ng-show="false">oh</span>
                </span>
              </div>
              <div class="teatalk-store-info">
                <span class="">{{item.created_time}}</span>
                <span class="">来自{{item.created_addr}}</span>
              </div>
            </div>


          </div>
          <div class="teatalk-store-attent float-right" ng-click="deleteTeaTalk(item.id)">
            <span id="" class="float-right bt-style3">删除</span>
          </div>
        </div>

        <div class="teatalk-item-body">
					<p class="teatalk-item-intrud ">{{item.content}}</p>
					<ion-gallery ion-gallery-items="item.imglist" ion-gallery-toggle="false"></ion-gallery>
					<!--<div class=" row_autoWarp auto-warp-img">
						<div class="col-33" ng-repeat="img in item.imglist" ng-click="photoBrowser($index, item.imglist)">
							<img src="{{img}}"/>
						</div>
					</div>-->
					<div class="teatalk-item-place">
						<span >
							<a class="subdued icon ion-ios-location">{{item.created_addr}}</a>
						</span>
					</div>
				</div>

        <div class="teatalk-item-share margin-top-10">
					<div class="teatalk-share-bt float-left"  ng-click="tea_talk_share(item)">
						<span>
							<a  class="subdued icon ion-share icon-num icon-20"></a>
						</span>
					</div>
					<div class="teatalk-share-bt float-left" ng-click="goto_talk_comntent(item.id)">
						<span>
							<a class="subdued icon ion-ios-chatbubble-outline icon-num icon-20">{{item.comment_count}}</a>
						</span>
					</div>
					<div class="teatalk-share-bt float-left" ng-click="talk_upvote(item)" ng-if="!item.is_upvote">
						<span>
							<a  class="subdued icon ion-ios-heart-outline icon-num icon-20">{{item.up_count}}</a>
						</span>
					</div>
					<div class="teatalk-share-bt float-left" ng-click="talk_upvote_cancel(item)" ng-if="item.is_upvote">
						<span>
							<a  class="subdued icon ion-ios-heart-outline icon-num icon-20 font-color-xg">{{item.up_count}}</a>
						</span>
					</div>
				</div>
      </div>

    </div>
    
    <ion-infinite-scroll  ng-if="!isStop_scroll" on-infinite="scroll_load_talk()" distance="1%" ></ion-infinite-scroll>

  </ion-content>
</ion-view>
